import request from '@/utils/request'

// 托管账单列表
export function escrowBillList(query) {
  return request({
    url: '/car/custodyBilling/list',
    method: 'get',
    params: query
  })
}
//托管账单详情
export function escrowBillDetail(id) {
  return request({
    url: '/car/custodyBilling/'+id,
    method: 'get',
  })
}
//托管账单详情
export function statistics(query) {
  return request({
    url: '/car/custodyBilling/statistics',
    method: 'get',
    params: query
  })
}
//托管账单费用明细
export function expenseDetails(id) {
  return request({
    url: '/car/custodyBillingItem/expenseDetails/'+id,
    method: 'get',
  })
}

// 交还车验车托管车辆
export function orderEscrowCarDetail(orderNo) {
  return request({
    url: '/car/custodyBilling/getByOrderNo/'+orderNo,
    method: 'get'
  })
}

// 确认收付款
export function confimPayment(data) {
  return request({
    url: '/car/custodyBilling/confirmThePayment',
    method: 'post',
    data: data
  })
}


// 编辑托管账单
export function updateBill(data) {
  return request({
    url: '/car/custodyBilling',
    method: 'put',
    data: data
  })
}
